<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
hello I Love Imooc
<p>var name = {{ name }}</p>
<p>
    {% if user %}
    {{ user.nickname }} 联系QQ:{{  user.qq }} 主页:{{ user.home_page }}
    {% endif %}
</p>
<p>
    {% for tmp_num in num_list %}
    {{ tmp_num }}
    {% endfor %}
</p>
<p> flask 查询数据库</p>
<p>
    {% for item in result %}
    {{ item['User'] }}
    {% endfor %}
</p>
</body>
</html>